home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / batch / tsbat36.zip / M.BAT < prev    next >
DOS Batch File  |  1990-03-04  |  1KB  |  46 lines

  1. echo off
  2. echo.
  3. echo ┌──────────────────────────────────────────────────┐
  4. echo │ M(ultiple) command batch processor               │
  5. echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 4-Mar-90 │
  6. echo └──────────────────────────────────────────────────┘
  7. echo.
  8.  
  9. if "%1"=="" goto _help
  10.  
  11. set _command=
  12. :_loop
  13. if "%1"=="" goto _do_last
  14. if "%1"=="-" goto _doit
  15. set _command=%_command% %1
  16. shift
  17. goto _loop
  18.  
  19. :_doit
  20. %_command%
  21. set _command=
  22. shift
  23. goto _loop
  24.  
  25. :_do_last
  26. %_command%
  27. goto _out
  28.  
  29. :_help
  30. echo If you have been bothered by the fact that MsDos cannot handle more
  31. echo than one command at the command line, here is the batch for you.
  32. echo.
  33. echo Usage: M [FirstCommand] [Parameters] [-] [SecondCommand] [Parameters] [...]
  34. echo.
  35. echo Examples: M dir *.exe - dir /w *.bat
  36. echo.
  37. echo If you get an "Out of environment space" message, increase your
  38. echo environment space by using shell configuration in config.sys:
  39. echo MsDos 3.30 example: shell=c:\bin\command.com /e:1024 /p
  40. echo.
  41. goto _out
  42.  
  43. :_out
  44. set _command=
  45. echo on
  46.